<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=750,user-scalable=no" />  <meta content="yes" name="apple-mobile-web-app-capable">  <meta content="black" name="apple-mobile-web-app-status-bar-style">  <meta content="telephone=no" name="format-detection">

    <title>{{.data.setting.webTitle}}</title>
    <meta name="keywords" content="{{.data.setting.webKeywords}}" />
    <meta name="description" content="{{.data.setting.webDesc}}" />
    <link rel="stylesheet" type="text/css" href="/public/front/pc/style/tab.css" media="all" />
    <link href="/public/front/pc/style/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/public/front/pc/js/jquery.js"></script> <!-- 效果库 -->
    <script type="text/javascript" src="/public/front/pc/js/jquery-1.10.2.min.js"></script> <!-- 效果库 -->
    <script type="text/javascript" src="/public/front/pc/js/search.js"></script> <!-- 搜索栏 -->
    <script type="text/javascript" src="/public/front/pc/js/noie.js"></script> <!-- 屏蔽IE6 -->
    <style type="text/css">
        .searchSelect {
            /* padding: 6px 0 0 11px; */
            line-height: 30px;
            text-align: center;
            font-size: 13px;
            width: 80px;
            height: 30px;
            background-color: #fdfcfb;
        }
    </style>
</head>


<body>
<div style="width:1000px;margin:10px auto;">

    <div class='head'>
        <div class='head_div'>
            <div class='head_left'>您好，欢迎来到<span>{{.data.setting.webTitle}}</span>！</div>
            <div class='head_right'><a href='javascript:SetHome(this,window.location)' class='to_ri_sp1'>设为主页</a><a href='javascript:AddFavorite("{{.data.setting.webTitle}}",window.location)' class='to_ri_sp2'>加入收藏</a></div>
        </div>
    </div>
    <div class='clear'></div>
    <div class='header'>
        <div class='top'>
            <div class='logo'><a href='/'><img src='/public/front/pc/images/logo.png' width='230' height='73' alt='{{.data.setting.webTitle}}' title='{{.data.setting.webTitle}}' /></a></div>
            <div class='date'>
                <div class='time'></div>
                <div class='weather'><iframe width='455' scrolling='no' height='75' frameborder='0' allowtransparency='true' src='http://i.tianqi.com/index.php?c=code&id=38&icon=1&num=2&align=left'></iframe></div>
                <a href='#'><div class='adv1'>{{Adv "adv_1"}}</div></a>
            </div>
        </div>
        <div class='clear'></div>
        <!-- 头部（logo + 日期） end -->
        <!-- 搜索栏 -->
        <div class='search'>
            <div class='ruzhu'><a href='/apply'><img src='/public/front/pc/images/ruzhu.png' width='208' height='49' alt='' title='' /></a></div>
            <div class='sea'>
                <form id="searchForm" action="/search{{$.data.setting.SearchType}}" method="get">
                <div class='sea_left'>
                    <select class="searchSelect">
                        <option value="0">综合搜索 ></option>
                        <option value="1">百度搜索 ></option>
                        <option value="2">谷歌搜索 ></option>
                        <option value="3">360搜索 ></option>
                        <option value="4">必应搜索 ></option>
                    </select>
                </div>
                <div class='sea_center'>
                    <div class='sea_center1'>
                        <input class='txtSearch' name='keyword' type='text' id='search' value='请输入关键字' />
                    </div>
                </div>
                <input type='button' value='搜索一下' class='sea_right' id="searchSubmit"/>
                </form>
                <div class='sea_bottom'>
                    <span class='span1'>热门：</span>
                    {{range $i, $v := .data.HotSearch}}
                    <span><a href='/search{{$.data.setting.SearchType}}?keyword={{$v}}'>{{$v}}</a></span>
                    {{end}}

                </div>
            </div>
        </div>
        <div class='search_bottom'></div>
        <div class='clear'></div>
        <!-- 搜索栏 end -->
    </div>
    <div class='clear'></div>

    <div class="tabPanel">
        <div class="panes">
            <div class="pane" style="display:block; "><div class="conter">
                    <!-- 主体信息 -->
                    <div class="wzdq">
                        <div class="main">
                            <div class="lleft">
                                <div class="left">
                                    <!-- 名站推荐 -->
                                    <div class="lefts">
                                        <div class="lefts_top"><span>名站推荐</span></div>
                                        <div class="lefts_main">
                                            <ul>{{Adv "adv_2"}}</ul>
                                        </div>
                                        <div class="left1_bottom">
                                            <ul>
                                                {{range $i, $v := .data.recommend.Re2}}
                                                <li><a href="/detail/{{$v.ID}}">{{$v.Title | FormatLen}}</a></li>
                                                {{end}}
                                            </ul>
                                        </div>
                                        <div class="lefts_top" style="margin-top: 10px"><span>最近更新</span></div>
                                        <div class="left1_bottom">
                                            <ul>
                                                {{range $i, $v := .data.news}}
                                                <li><a href="/detail/{{$v.ID}}">{{$v.Title | FormatLen}}</a></li>
                                                {{end}}
                                            </ul>
                                        </div>
                                    </div>
                                    <!-- 名站推荐 end -->
                                </div>
                            </div>

                            <div class="right">
                                <!-- 黄金广告位 -->
                                <div class="right1">
                                    <ul class="gold1">
                                        {{range $i, $v := .data.recommend.Re1}}
                                            <li><a href="/detail/{{$v.ID}}">{{$v.Title | FormatLen}}</a></li>
                                        {{end}}
                                    </ul>
                                </div>
                                <!-- 黄金广告位 end -->

                                <!-- 普通排列区 -->
                                <div class="right3">
                                    {{ yield }}
                                </div>
                                <!-- 普通排列区 end -->
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!-- 热门+其它+地区 end -->
                    <div class="index_bottom_link">
                        <div class="link"><p>友情链接</p>
                            <ul>
                                {{range $i, $v := .data.link}}
                                    <li><a href="{{$v.Url}}" TARGET="_blank">{{$v.Title}}</a></li>
                                {{end}}
                            </ul>
                        </div>
                    </div>
                    <!-- 主体信息 end -->

                </div>
                <!-- 类别浮窗 -->
                <div class="shortcut">
                    <ul>
                        {{range $k, $v := .data.parentList}}
                            <li><a href="#aa{{$v.ID}}" target="_parent">{{$v.Name}}</a></li>
                            <p class="shuxian" ></p>
                        {{end}}
                        <p class="shuxian" id="sx2"></p>
                        <li class="top" id="roll_top"><a>返回顶部</a></li>
                    </ul>
                </div>
                <script type="text/javascript" src="/public/front/pc/js/return_top.js"></script> <!-- 返回顶部特效代码 -->
            </div>
        </div>
    </div>
</div>

<div class="footer">
    {{.data.setting.webFooter | strToHtml}}
</div>
<script>
    $(function () {
        $('#searchSubmit').click(function () {
            var searchSelect = $('.searchSelect').val()
            if($('#search').val() == '' || $('#search').val() == '请输入关键字'){
                alert("请输入搜索内容！")
                return
            }
            if (searchSelect == 0){ //本地搜索
                $('#searchForm').submit()
            }else if(searchSelect == 1){ //百度搜索
                window.open("http://www.baidu.com/s?wd=" + $('#search').val())
            }else if(searchSelect == 2){ //谷歌搜索
                window.open("http://www.google.cn/search?q=" + $('#search').val())
            }else if(searchSelect == 3){ //360搜索
                window.open("https://www.so.com/s?ie=utf-8&amp;fr=none&amp;q=" + $('#search').val())
            }else if(searchSelect == 4){ //必应搜索
                window.open("http://cn.bing.com/search?q=" + $('#search').val())
            }
        });
    });

    function SetHome(obj,url){
        try{
            obj.style.behavior='url(#default#homepage)';
            obj.setHomePage(url);
        }catch(e){
            if(window.netscape){
                try{
                    netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                }catch(e){
                    alert("抱歉，此操作被浏览器拒绝！\n\n请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为'true'");
                }
            }else{
                alert("抱歉，您所使用的浏览器无法完成此操作。\n\n您需要手动将【"+url+"】设置为首页。");
            }
        }
    }

    function AddFavorite(title, url) {
        try {
            window.external.addFavorite(url, title);
        }
        catch (e) {
            try {
                window.sidebar.addPanel(title, url, "");
            }
            catch (e) {
                alert("抱歉，您所使用的浏览器无法完成此操作。\n\n加入收藏失败，请进入新网站后使用Ctrl+D进行添加");
            }
        }
    }
</script>
</body>
</html>
